<?php

namespace common\models\bill;

use Yii;

/**
 * This is the model class for table "{{%bill_data}}".
 *
 * @property int $id
 * @property int $bill_id 票据ID
 * @property int $field_id 关联字段ID
 * @property string $data_type 数据类型
 * @property string $content 数据内容
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at 删除时间
 */
class BillData extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%bill_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['bill_id', 'field_id', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['data_type', 'content'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'bill_id' => '票据ID',
            'field_id' => '关联字段ID',
            'data_type' => '数据类型',
            'content' => '数据内容',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => '删除时间',
        ];
    }

}
